<#include "../common/head.ftl" />
<#include "../common/page.ftl" />
<!DOCTYPE html>
<html>
	<head lang="en">
		<@comme_head/>
	    <@comme_table/>
	    <meta charset="UTF-8">
	    <title>单题信息列表页</title>
	</head>
	<body>
	<@comme_header/>
	<div class="main clearfix" id="main">
	    <#include "../common/head.ftl" />
        <@comme_daohang />
	    <div class="right-content">
	        <div class="content">
	            <div id="container">
	                <div class="box-1">
	                    <input id="dataType" name="dataType" type="text" value="${dataType?if_exists}" placeholder="数据来源" class="search">
	                    <b id="searched" class="fangdajing"></b>
	                </div>
	                <table class="zebra">
	                    <caption>单个宝宝做题信息表</caption>
	                    <thead>
	                    <tr>
	                        <th>题名称</th>
	                        <th>宝宝名称</th>
	                        <th>园所名称</th>
	                        <th>教师名称</th>
	                        <th>完成单题时长（秒）</th>
	                        <th>来源</th>
	                    </tr>
	                    </thead>
	                    <tbody>
	                    <#if data?size != 0>
	                    <#list data as baby>
		                    <tr>
		                        <td>${baby.topicName}</td>
		                        <td>${baby.babyName}</td>
		                        <td>${baby.gardenName}</td>
		                        <td>${baby.teacherName}</td>
		                        <td>${baby.topicTime}</td>
		                        <td>${baby.dataType}</td>
		                        <!--<td><a style="color:blue;" href="javascript:;" onclick="looked(${baby.id})"></a></td>-->
		                    </tr>
		                </#list>
		                <#else>
		                	<tr>
		                        <td colspan="6">没有相关数据</td>
		                    </tr>
		                </#if>
		                 <tr>
						  <td colspan="6">
							 <div class="pages">
								<@page pageid="" url="/manager/pageBaby?dataType=${dataType!}&&currentpageno=" />
							  </div>
						   </td>
					      </tr>
	                    </tbody>
	                </table>
	            </div>
	        </div>
	    </div>
	</div>
	</body>
	<script>
	    //搜索
	    $(function(){
	    	$("#searched").click(function(){
	    		var dataType = $("#dataType").val();
	    		window.location.href="/manager/pageBaby?dataType="+dataType+"&&currentpageno=0";
	    	});
	    });
	</script>
</html>